<?php require __DIR__ . '/../inc_header.tpl.php';?>

		
<span class="layui-breadcrumb">
	<a href="<?php echo url(['platform','platform','index']);?>">控制台</a>
	<a href="">配置</a>
	<a><cite>默认应用设置</cite></a>
</span>

<div class="layui-tab layui-tab-brief">
	<ul class="layui-tab-title">
		<li class="layui-this"><a href="<?php echo url(['platform','config','app_default']);?>">默认应用入口</a></li>
		<li ><a href="<?php echo url(['platform','config','config']);?>">平台配置</a></li>
	</ul>
</div>    
<br>

<form class="layui-form" action="<?php echo url(['platform','config','app_default']);?>" method="post" style="max-width: 800px;margin: 40px auto;">
	<div class="layui-form-item">
		<label class="layui-form-label" style="width: 100px;padding: 9px 0;">前台默认应用：</label>
		<div class="layui-input-block">
			<select name="app" lay-verify="required">
				<option value="">控制台</option>
				<?php
				foreach($module_installed as $row){
				?>
				<option value="<?php echo $row['identifie']; ?>" 
						<?php if($ret_config['app']==$row['identifie']){echo 'selected';}?> 
					><?php echo $row['name']; ?> &nbsp; (<?php echo $row['identifie']; ?>)</option>
				<?php
				}
				?>
			</select>
			<div style="color:#bbb">PC网站的默认访问或隐藏登录入口</div>
		</div>
	</div>
	<div class="layui-form-item">
		<label class="layui-form-label" style="width: 100px;padding: 9px 0;">后台默认应用：</label>
		<div class="layui-input-block">
			<select name="platform" lay-verify="required">
				<option value="">控制台</option>
				<?php
				foreach($module_installed as $row){
				?>
					<option value="<?php echo $row['identifie']; ?>" 
							<?php if($ret_config['platform']==$row['identifie']){echo 'selected';}?> 
					><?php echo $row['name']; ?>管理 &nbsp; (<?php echo $row['identifie']; ?>)</option>
				<?php
				}
				?>

			</select>
			<div style="color:#bbb">登录成功后的管理首页</div>
		</div>
	</div>
	
	<div class="layui-form-item">
		<div class="layui-input-block">
			<button class="layui-btn" type="submit">&emsp;提交&emsp;</button>
		</div>
	</div>
</form>

<?php require __DIR__ . '/../inc_footer.tpl.php';?>